package com.sean.ribbon;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import com.sean.ribbon.rule.SeanRandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RibbonRandomRoleConfig {
    @Bean
    public IRule iRule(){
//        return new RandomRule();
        return new SeanRandomRule();
    }
}
